{assign var=i value=1}
<ul class="browseListing">
	{foreach from = $browseItems item = browseItem name=browseItems}
        {if ( ($GLOBALS.settings.enableBrowseByCounter && $browseItem.count > 0 || !$GLOBALS.settings.enableBrowseByCounter) && $i <= $recordsNumToDisplay )}
            {assign var=i value=$i+1}
            <li>
				<a class='brByCategoryLink'  href="{$GLOBALS.site_url}/browse-by-category/{$browseItem.url|replace:"/":"-or-"|escape:"url"}/">[[{$browseItem.caption|truncate:28:"...":true}]]
                    {if $GLOBALS.settings.enableBrowseByCounter}<span class="blue">({$browseItem.count})</span>{/if}
                </a>
            </li>
            {if $smarty.foreach.browseItems.iteration is div by $columns}</ul><ul class="browseListing">{/if}
        {/if}
	{foreachelse}
        <li>[[There are no listings with requested parameters in the system.]]</li>
    {/foreach}
    {if $i == 1}
    	 <li>[[There are no listings with requested parameters in the system.]]</li>
    {/if}
</ul>